package com.xm.listener;

import com.xm.model.Msg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.B")
@Slf4j
public class TopicReceiverB {

    @RabbitHandler
    public void process(Msg msg){
        log.info("topicReceiverB[{}](process)消费者收到消息：{}", 2, msg);
    }
}
